package cn.dckeji.gameBox.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Lucas
 * @since 2018-08-20
 */
@TableName("game_banner")
public class Banner extends Model<Banner> {

    private static final long serialVersionUID = 1L;

    /**
     * 广告编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 游戏名称
     */
    private String gameName;
    /**
     * 游戏类别编码 1：二维码 2：小游戏  3：h5游戏
     */
    private String gameType;
    /**
     * 地址
     */
    private String url;
    /**
     * 轮播图片路径
     */
    private String img;
    /**
     * 页面路径
     */
    private String pagePath;

    @Override
    public String toString() {
        return "Banner{" +
                "id=" + id +
                ", gameName='" + gameName + '\'' +
                ", gameType='" + gameType + '\'' +
                ", url='" + url + '\'' +
                ", img='" + img + '\'' +
                ", pagePath='" + pagePath + '\'' +
                '}';
    }

    public String getPagePath() {
        return pagePath;
    }

    public void setPagePath(String pagePath) {
        this.pagePath = pagePath;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGameName() {
        return gameName;
    }

    public void setGameName(String gameName) {
        this.gameName = gameName;
    }

    public String getGameType() {
        return gameType;
    }

    public void setGameType(String gameType) {
        this.gameType = gameType;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
